import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutation'

Vue.use(Vuex)

const defaultGoodsList = {
  id: +new Date(),
  imgurl: '//img10.360buyimg.com/mobilecms/s117x117_jfs/t19120/94/2650328332/104809/b1b37ad7/5b022af9N667f2364.jpg!q70.dpg.webp',
  num: 1,
  price: '1685',
  text: '索尼（SONY）MDR-1AM2 Hi-Res高解析度立体声耳机 银色'
}

const state = {
  gooodsList: [defaultGoodsList],
  check: false
}
export default new Vuex.Store({
  state,
  mutations
})
